<?php slot('herramientas') ?>
	<a class="tool_nuevo" href="<?php echo url_for('producto/new') ?>"><?php echo __('Nuevo')?></a>
	<span class="tool_eliminar"><?php echo __('Eliminar')?></span>
	<span class="tool_buscar"><?php echo __('Buscar')?></span>
	<span class="tool_imprimir"><?php echo __('Imprimir')?></span>
	<a class="tool_listar_almacen" href="<?php echo url_for('almacen/index') ?>"><?php echo __('Listar Almacenes')?></a>

	<script language="JavaScript" type="text/javascript">
  	$(function() {
  		$('.tool_eliminar').click(function() {
  						  $("#batch_action").attr('value', 'batchDelete');
 						  $('#acciones').submit();
	  	});
		$('.tool_imprimir').click(function() {
  						  $("#batch_action").attr('value', 'batchPrint');
 						  $('#acciones').submit();
	  	});
  		$(".tool_nuevo").button({
            icons: {
                primary: "ui-icon-plusthick"
            },
            text: true
        });
        $(".tool_buscar").button({
            icons: {
                primary: "ui-icon-search"
            },
            text: true
        }).click(function () {
			$("#crm_filtro").toggle("slow");
        });
        $(".tool_imprimir").button({
            icons: {
                primary: "ui-icon-print"
            },
            text: true
        });
        $(".tool_eliminar").button({
            icons: {
                primary: "ui-icon-minusthick"
            },
            text: true
        });
        $(".tool_listar_almacen").button({
            icons: {
                primary: "ui-icon-script"
            },
            text: true
        });
	});
  </script>
<?php end_slot() ?>
<script language="JavaScript" type="text/javascript">
  				$(function() {
  					$('#boton').click(function() {
 						  $('#servicio').submit();
	  				});
					$(".tool_guardar").button({
            			icons: {
                			primary: "ui-icon-check"
            			},
            			text: true
        			});
        			$(".tool_cancelar").button({
            			icons: {
                			primary: "ui-icon-closethick"
            			},
            			text: true
        			});
				});
  			  	</script>